public class Test {
    public static void main(String[] args) {
        /*Person person = new ThirdFactory().doPerson();
        person.eat();*/
        Person chinese = new FourthFactory2().getPerson("chinese");
        chinese.eat();
        Person japanese = new FourthFactory2().getPerson("japanese");
        japanese.eat();
    }
}
